import request from '@/utils/request'

// 查询计提年终奖列表
export function listNzjjt(query) {
  return request({
    url: '/basebill/nzjjt/list',
    method: 'get',
    params: query
  })
}

// 查询计提年终奖详细
export function getNzjjt(fid) {
  return request({
    url: '/basebill/nzjjt/' + fid,
    method: 'get'
  })
}

// 新增计提年终奖
export function addNzjjt(data) {
  return request({
    url: '/basebill/nzjjt',
    method: 'post',
    data: data
  })
}

// 修改计提年终奖
export function updateNzjjt(data) {
  return request({
    url: '/basebill/nzjjt',
    method: 'put',
    data: data
  })
}

// 删除计提年终奖
export function delNzjjt(fid) {
  return request({
    url: '/basebill/nzjjt/' + fid,
    method: 'delete'
  })
}
//导入年终奖计提
export function importNzjjt(fid) {
  return request({
    url: '/basebill/nzjjt/importNzjjt/' + fid,
    method: 'get'
  })
}
